package ai.zixing.example01;

public class Client {
    public static void main(String[] args) {

        Subject subject = new ConcreteSubject();
        subject.attach(new ConcreteObserverOne());
        subject.attach(new ConcreteObserverTwo());
        // 主题内部发生改变，通知所有观察者
        subject.notifyObservers();
    }
}
